package com.example.demo.filter;

import org.springframework.web.filter.OncePerRequestFilter;

import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class FilterTest2 extends OncePerRequestFilter {
    public FilterTest2(){
        System.out.println("Constructor: FilterTest2");
    }

    @Override
    protected void doFilterInternal(HttpServletRequest request,
                                    HttpServletResponse response,
                                    FilterChain filterChain)
            throws ServletException, IOException {
        System.out.println("FilterTest2 doFilterInternal");
        filterChain.doFilter(request, response);
    }
}
